//这是项目入口文件
import Vue from "vue"//导入vue
import VueRouter from "vue-router"//导入vue路由
Vue.use(VueRouter)//把路由加载到Vue上
import router from "./router.js" //导入抽离的路由js文件
import App from "../src/App.vue"//导入App根组件
import MintUi from "mint-ui"//导入mint-ui组件
Vue.use(MintUi)//把mint-ui加载到vue上
import "mint-ui/lib/style.css"//导入mint-ui样式
import {Header,Swipe, SwipeItem,Button} from "mint-ui"//按需导入mint-ui中的Header组件
Vue.component(Header.name,Header)//把组件模板添加到vue组件中
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name,Button)


import "./lib/css/mui.min.css"//导入MUI样式
import "./lib/css/icons-extra.css"//导入MUI扩展图标样式

//import VueResource from "vue-resource"
//Vue.use(VueResource)

import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)
var vm=new Vue({//创建vm实例
    el:"#app",
    render:c=>c(App),
    router
})

